package com.youlu.campus.web.order.service;

import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Slf4j
@Service
public class OrderCommissionService {


    @Autowired
    private DigitalCaOrderService digitalCaOrderService;

    @Autowired
    private OrderService orderService;

    public void initOrderCommision(String activityId){
        log.info("初始化活动订单:{}分拥",activityId);
        try {
            digitalCaOrderService.initOrderDigitalCaCommission(activityId);
        }catch (Exception e){

        }
        try {
            orderService.initPaperCaOrderCommission(activityId);
        }catch (Exception e){

        }
        log.info("初始化活动订单:{}分拥 已结束",activityId);
    }

}
